package cn.angis.system.controller;


import cn.angis.common.model.R;
import cn.angis.db.controller.RBaseController;
import cn.angis.system.model.Server;
import org.noear.solon.annotation.Controller;
import org.noear.solon.annotation.Get;
import org.noear.solon.annotation.Mapping;

/**
 * 服务器监控
 *
 * @author ruoyi
 */
@Controller
@Mapping("/monitor/server")
public class ServerController extends RBaseController {
    @Mapping
    @Get
    public R<Server> getInfo() throws Exception {
        Server server = new Server();
        server.copyTo();
        return success(server);
    }
}
